package com.pll.mapper;

import com.pll.controller.admin.user.vo.MerchantLoginVO;
import com.pll.controller.admin.user.vo.MerchantRegistrationVO;
import com.pll.controller.admin.user.vo.MerchantSettledVO;
import com.pll.pojo.Merchant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @className: UserMapper
 * @author: XR_Z
 * @date: 2025/6/7 18:22
 * @Version: 1.0
 * @description: 用户Mapper层
 */

@Mapper
public interface UserMapper {

    Merchant login(MerchantLoginVO loginVO);

    int enroll(MerchantRegistrationVO merchantRegistrationVO);

    int merchantSettled(MerchantSettledVO merchantSettledVO);

    @Select("SELECT * FROM merchant WHERE account=#{account}")
    Merchant MerchantIsExist(MerchantRegistrationVO merchantRegistrationVO);
}
